#include"Socket.hpp"


int main()
{
    Socket socket_;
    socket_.CreatSocket();
    socket_.Bind();
    socket_.Listen();
    while(true)
    {
        SocketInfo client;
        socket_.Accept(client);
        std::string recive_str;
        socket_.Recive(client.socketfd_,recive_str);
        std::cout<<recive_str;
        socket_.Send(client.socketfd_,"你好\n");
        close(client.socketfd_);
    }

    return 0;
}